package ltd.sshine.websocket.DO;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Message {
    String type;
    String username;
    Object data;
    @JsonFormat(pattern = "yyyy年MM月dd日HH时mm分ss秒",timezone ="GMT+8")
    Date time;
    int code;
}
